import { createApp } from 'vue'

import App from './App.vue'
import ElementPlus from 'element-plus'
import locale from 'element-plus/es/locale/lang/zh-cn' // 中文语言
import 'element-plus/dist/index.css'

import '@/assets/styles/style.css' // page css

// svg图标
import 'virtual:svg-icons-register'
import SvgIcon from '@/components/SvgIcon/index.vue'
import elementIcons from '@/components/SvgIcon/svgicon.js'

import router from './router'


const app = createApp(App)

app.use(router)
app.use(elementIcons)
app.component('svg-icon', SvgIcon)

app.use(ElementPlus, {
    locale: locale,
})
app.mount('#app')

